using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace RookieGrow.Domain.Model.Logistics.Map
{
    public class LocationMap : ClassMap<Location> 
    {
        public LocationMap() 
        {
			Table("location");
			LazyLoad();
			Id(x => x.Id).GeneratedBy.Identity().Column("id");
			Map(x => x.Latitude).Column("latitude");
			Map(x => x.Longitude).Column("longitude");
			Map(x => x.Timestamp).Column("timestamp");
            References(x => x.Truck).Column("truck_id");
        }
    }
}
